<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>TCustomJSONPropStorage</title>
<link rel="stylesheet" href="../fpdoc.css" type="text/css">

</head>
<body>
<table class="bar" width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td><b>[<a href="../jsonpropstorage/index.html">Overview</a>][<a href="../jsonpropstorage/index-4.html">Classes</a>][<a href="../jsonpropstorage/index-8.html">Index</a>]</b></td>
<td align="right"><span class="bartitle">Reference for unit 'JSONPropStorage' (<a href="../index.html">#lazJsonPropStorage</a>)</span></td>
</tr>
</table>
<h1>TCustomJSONPropStorage</h1>
<p>[<a href="../jsonpropstorage/tcustomjsonpropstorage-1.html" onClick="window.open('../jsonpropstorage/tcustomjsonpropstorage-1.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">Properties</a> (<a href="../jsonpropstorage/tcustomjsonpropstorage-2.html" onClick="window.open('../jsonpropstorage/tcustomjsonpropstorage-2.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">by Name</a>)] [<a href="../jsonpropstorage/tcustomjsonpropstorage-3.html" onClick="window.open('../jsonpropstorage/tcustomjsonpropstorage-3.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">Methods</a> (<a href="../jsonpropstorage/tcustomjsonpropstorage-4.html" onClick="window.open('../jsonpropstorage/tcustomjsonpropstorage-4.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">by Name</a>)] [<a href="../jsonpropstorage/tcustomjsonpropstorage-5.html" onClick="window.open('../jsonpropstorage/tcustomjsonpropstorage-5.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">Events</a> (<a href="../jsonpropstorage/tcustomjsonpropstorage-6.html" onClick="window.open('../jsonpropstorage/tcustomjsonpropstorage-6.html', 'list', 'dependent=yes,resizable=yes,scrollbars=yes,height=400,width=300'); return false;">by Name</a>)] </p>
<p>Implements the base class for the JSON Form's Session Properties Storage.</p>
<h2>Declaration</h2>
<p>Source position: JSONPropStorage.pas line 30</p>
<table cellpadding="0" cellspacing="0">
<tr>
<td><p><tt><span class="code"><span class="kw">type</span> TCustomJSONPropStorage <span class="sym">=</span> <span class="kw">class</span><span class="sym">(</span>TFormPropertyStorage<span class="sym">)</span> <span class="kw">end</span><span class="sym">;</span></span></tt></p></td>
</tr>
<tr>
<td><p><tt><span class="code"><span class="kw">protected</span></span></tt></p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">function </span><a href="../jsonpropstorage/tcustomjsonpropstorage.getjsonfilename.html">GetJSONFileName</a><span class="sym">;</span><span class="kw"> virtual</span><span class="sym">;</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Getter for the property <a href="../jsonpropstorage/tcustomjsonpropstorage.jsonfilename.html">TCustomJSONPropStorage.JSONFileName</a>.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">function </span><a href="../jsonpropstorage/tcustomjsonpropstorage.rootsection.html">RootSection</a><span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Returns the name of the RootSection.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">function </span><a href="../jsonpropstorage/tcustomjsonpropstorage.getformatted.html">GetFormatted</a><span class="sym">;</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Getter for the property <a href="../jsonpropstorage/tcustomjsonpropstorage.formatted.html">TCustomJSONPropStorage.Formatted</a>.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">procedure </span><a href="../jsonpropstorage/tcustomjsonpropstorage.setformatted.html">SetFormatted</a><span class="sym">();</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Setter for the property <a href="../jsonpropstorage/tcustomjsonpropstorage.formatted.html">TCustomJSONPropStorage.Formatted</a>.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">function </span><a href="../jsonpropstorage/tcustomjsonpropstorage.fixpath.html">FixPath</a><span class="sym">();</span><span class="kw"> virtual</span><span class="sym">;</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Turns '.' notation into '/' notation for the xpath-ish <a href="http://wiki.freepascal.org/fcl-json">JSONConf</a> underlayer.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">property </span><a href="../jsonpropstorage/tcustomjsonpropstorage.jsonconf.html">JSONConf</a><span class="sym">: </span>TJSONConfig<span class="sym">;</span>  [r]</span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Instance of the object that implements a generic path/value pair storage.</p></td>
</tr>
<tr>
<td><p><tt><span class="code"><span class="kw">public</span></span></tt></p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">procedure </span><a href="../jsonpropstorage/tcustomjsonpropstorage.storageneeded.html">StorageNeeded</a><span class="sym">();</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Aks the underlying storage object for an entry</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">procedure </span><a href="../jsonpropstorage/tcustomjsonpropstorage.freestorage.html">FreeStorage</a><span class="sym">;</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Frees an entry from the underlying storage object.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">function </span><a href="../jsonpropstorage/tcustomjsonpropstorage.doreadstring.html">DoReadString</a><span class="sym">();</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Implements the actual reading of a value from the underlying storage container.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">procedure </span><a href="../jsonpropstorage/tcustomjsonpropstorage.dowritestring.html">DoWriteString</a><span class="sym">();</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Implements the actual writing of a value from the underlying storage container.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">procedure </span><a href="../jsonpropstorage/tcustomjsonpropstorage.doerasesections.html">DoEraseSections</a><span class="sym">();</span><span class="kw"> override</span><span class="sym">;</span></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Erases a section from the underlying storage container.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">property </span><a href="../jsonpropstorage/tcustomjsonpropstorage.jsonfilename.html">JSONFileName</a><span class="sym">: </span>string<span class="sym">;</span>  [rw]</span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Name of the file where the property data is saved in JSON format.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">property </span><a href="../jsonpropstorage/tcustomjsonpropstorage.rootobjectpath.html">RootObjectPath</a><span class="sym">: </span>string<span class="sym">;</span>  [rw]</span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Name of the root object path on your JSON file.</p></td>
</tr>
<tr>
<td valign="top"><p><tt><span class="code">&nbsp;&nbsp;<span class="kw">property </span><a href="../jsonpropstorage/tcustomjsonpropstorage.formatted.html">Formatted</a><span class="sym">: </span>Boolean<span class="sym">;</span>  [rw]</span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">This determines if the JSON is to be formatted or not.</p></td>
</tr>
<tr>
<td><p><tt><span class="code"></span></tt></p></td>
</tr>
</table>
<h2>Inheritance</h2>
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><p><tt><span class="code"><a href="../jsonpropstorage/tcustomjsonpropstorage.html">TCustomJSONPropStorage</a></span></tt></p></td>
<td><p>&nbsp;&nbsp;</p></td>
<td><p class="cmt">Implements the base class for the JSON Form's Session Properties Storage.</p></td>
</tr>
<tr>
<td align="center">|</td>
</tr>
<tr>
<td align="center"><p><tt><span class="code">TFormPropertyStorage</span></tt></p></td>
</tr>
<tr>
<td align="center">?</td>
</tr>
<tr>
<td align="center"><p><tt><span class="code">TObject</span></tt></p></td>
</tr>
</table>
</body>
</html>
